TextHandle: Don't draw handles if not visible
authorAlexander Larsson <alexl@redhat.com>
Tue, 5 Feb 2013 11:27:39 +0000 (12:27 +0100)
committerAlexander Larsson <alexl@redhat.com>
Thu, 7 Feb 2013 10:11:38 +0000 (11:11 +0100)
commitebb84e8d193723cfa6485ff91f50cdedbe947f0f
treef59274815dd96433311a60b9bb8e5f380b8626de
parentb57a2c8341bbadd08428ba7f421a2172b3465b06
TextHandle: Don't draw handles if not visible

When calling gtk_widget_draw() on the entry gtk_cairo_should_draw_window()
will return TRUE for all windows. This is used when rendering a widget to
somewhere other than the screen, and its now used for transparent widgets.
This caused the texthandle to always draw itself and terminate the draw
handler for the entry.

Instead we now only draw the markers when really visible, plus we return
FALSE to avoid stopping the entry drawing.

https://bugzilla.gnome.org/show_bug.cgi?id=687842
gtk/gtktexthandle.c